function output = signal_generator(t)
freq = 2;
if t < freq/4
output = sin(2*freq*pi*t);
else
     output = 0;
 end
% output = 0;
%     if(t > 0.5)
%         output = 0.5;
%     end
end

